import request from '@/utils/request'

export function getOwnList(query) {
  return request({
    url: '/web-api/api/personal',
    method: 'get',
    params: query
  })
}

export function getOwnAll(query) {
  return request({
    url: '/web-api/api/personal/list',
    method: 'get',
    params: query
  })
}

export function addOwn(data) {
  return request({
    url: '/web-api/api/personal',
    method: 'post',
    data
  })
}

export function delOwn(ids) {
  return request({
    url: '/web-api/api/personal',
    method: 'delete',
    data: ids
  })
}

export function editOwn(data) {
  return request({
    url: '/web-api/api/personal',
    method: 'put',
    data
  })
}

export function downloadOwn(query) {
  return request({
    url: '/web-api/api/personal/download',
    method: 'get',
    params: query
  })
}
